<m_include file="Public:head" />
<body>
<m_include file="Public:nav" />
<div class="main">
<div id="content">
	<div class="baseinfo" >
		<img src="{:sp_get_asset_upload_path($avatar)}" alt="{$pname}">
		<h2>{$pname}</h2><span id="price" style="display: none;">{$price}</span>
		<span>请如实描述手机以获得最准确的报价</span>
		
	</div>
    <div class="choice">
    	{$content}   
        <form id="choix_form" action="{:U('/order/','','')}" method="post"> 
        <input type="hidden" value="{$id}" name="pid">
        <input type="hidden" value="" name="order_price">
        <input type="hidden" value="" name="order_json">       
        <input type="hidden" id="is_lock" value="0">           
        <div class="choice_bnt">
        	<div class="price_s">评估价格：<span id="price_s">- -</span></div><button type="button" id="submit_order">下单收钱</button></div>
        </form>
        <div class="num"><p>您还有<em></em>项未选 <a>查看</a></p></div>
    </div>
</div>
</div>
<m_include file="Public:foot" />
<m_include file="Public:script" />
<script src="__TMPL__Public/js/v.js?v={$version}"></script>

<script type="text/javascript">
jQuery(function($) {
    $(".num").hide();  
    $('#submit_order').on('click',function(){
		if($("#is_lock").val() == 0) return;		
		$('#choix_form').submit();
    });
});
$(document).ready(function(){
    $('.num p em').html( $('.choice dl.radio').length);
    $('.num').show();
});

wx.ready(function (){
	var w_title = '{$pname}回收 | 收个机',
		w_imgUrl = 'https://mmbiz.qlogo.cn/mmbiz/miaDlcMfFxKERIpdBCBuaHiam9lXSR0kicdVxNZXOOz92jNQNdBucLu99eOw94ibiaXqPeTzB9ibexwdq8MzuDbmznNQ/0?wx_fmt=jpeg';
	wx.onMenuShareTimeline({
		title: w_title,// 分享标题
		link: '', // 分享链接
		imgUrl: w_imgUrl,
		success: function () { },
		cancel: function () {}
	});	
	wx.onMenuShareAppMessage({
		title: w_title, // 分享标题
		desc: '', // 分享描述
		link: '', // 分享链接
		imgUrl: w_imgUrl, // 分享图标
		type: '', // 分享类型,music、video或link，不填默认为link
		dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
		success: function () {},
		cancel: function () {}
	});
});


</script>
</body>
</html>
